home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er Special 46
/
64er_Magazin_Sonderheft_46_19xx_Markt__Technik_de_Side_A.d64
/
stundenplan 64
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
10KB
|
353 lines
10 rem ********************************
15 rem ********************************
20 rem ** **
25 rem ** stundenplan 64 **
30 rem ** -------------- **
35 rem **============================**
40 rem ** **
45 rem ** idee & programm von: **
50 rem ** **
55 rem ** guido lemmel **
60 rem ** barmbeker weg 10 c **
65 rem ** 1000 berlin 20 **
70 rem ** **
71 rem ** ueberarbeitung, speed-up **
72 rem ** und artikel: **
73 rem ** **
74 rem ** nikolaus heusler, 290689 **
75 rem ** fuer markt & technik **
76 rem ** 64'er sonderheft 46 **
77 rem ** **
78 rem ********************************
80 rem ********************************
85 :
90 rem - initialisieren -
95 :
100 clr
105 dim w$(48),fa$(19)
110 cs=58640:zs=59903:bs=53265:hard=0
115 for i=1 to 6:read wt$(i):next i
120 for ii=1 to 18:read fa$(ii):next ii
125 bt$(0)=chr$(15):bt$(1)=chr$(14)
130 ps$=chr$(27)+chr$(16)
135 :
140 rempoke 808,234:goto 790
141 goto 790
145 :
150 rem - meldungen ausgeben -
155 :
160 print"[147][158][194]etrifft: ";meld$(1)
165 print"[151][176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]";
170 print"[221] [221]";
175 print"[173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189][146]";
180 print" <[212][193][211][212][197]>"
185 print"[145][145][145][145][151]";meld$(2)
190 poke 198,0:wait 198,1:poke 198,0
195 return
200 :
205 rem - floppystatus -
210 :
215 input#15,f$(1),f$(2),f$(3),f$(4)
220 if f$(1)="00" then return
225 meld$(1)="[198]loppy":meld$(2)=f$(1)+","+f$(2)+","+f$(3)+","+f$(4)
230 if f$(1)="01" then 240
235 if f$(1)<>"0" then ein=0
240 gosub 160
245 return
250 :
255 rem - floppy eingeschaltet ? -
260 :
265 poke 768,61:open 1,8,15,"i":close 1
270 poke 768,139:if st<>-128 then return
275 meld$(1)="[198]loppy":meld$(2)="[196]ie [198]loppy ist nicht eingeschaltet !"
280 gosub 160:goto 265
285 return
290 :
295 rem - drucker eingeschaltet ? -
300 :
305 open 1,4:poke 768,61:print#1:close 1
310 poke 768,139:if st<>-128 then return
315 meld$(1)="[196]rucker":meld$(2)="[196]er [196]rucker ist nicht eingeschaltet !"
320 gosub 160:goto 305
325 return
330 :
335 rem - daten speichern -
340 :
345 gosub 265
350 open 15,8,15,"s:stundenplan":close 15
355 open 1,8,2,"stundenplan,s,w"
360 for i=1 to 48:print#1,w$(i):next i
365 close 1:open 15,8,15:gosub 215:close 15:return
370 :
375 rem - daten laden -
380 :
385 gosub 265
390 open 1,8,2,"stundenplan,s,r"
395 for i=1 to 48:input#1,w$(i):next i
400 close 1:open 15,8,15:gosub 215:close 15:return
405 :
410 rem - directory - aus 64'er 8/87
415 :
420 gosub 265:open 15,8,15:gosub 215
425 if f$(1)<>"00" then close 15:gosub 160:return
430 close 15:open 1,8,0,"$":print"[147]":poke 781,1:sys 65478:get a$,a$:e$=chr$(0)
435 geta$,a$,h$,l$:ifstthensys65484:close1:poke198,0:wait198,1:poke198,0:return
440 print asc(h$+e$)+256*asc(l$+e$);
445 get a$,b$:if a$ then print a$b$;:goto 445
450 print a$:goto 435
455 :
460 rem - floppy-befehle -
465 :
470 gosub 265:print#15,be$:gosub 215:return
475 gosub 265:print#15,"s:stundenplan":gosub 215:return
480 :
485 rem - eingaberoutine -
490 :
495 b$="":get b$:if b$="" then 495
500 if len(ei$)<>0 and b$=chr$(20) then ei$=left$(ei$,len(ei$)-1):goto 535
505 if b$=chr$(13) or b$="_" then return
510 if len(ei$)>lw then 495
515 if b$=chr$(20) then 495
520 if len(ei$)=0 and b$=" " then 495
525 if b$="[147]" or b$="" or b$="[160]" or b$="" or b$="[145]" or b$="" or b$="[157]"then495
530 ei$=ei$+b$
535 print chr$(20);b$;"[164]";:goto 495
540 :
545 rem - stundenplan ausgeben -
550 :
555 print"[176][192][178][192][192][192][192][192][178][192][192][192][192][192][178][192][192][192][192][192][178][192][192][192][192][192][178][192][192][192][192][192][178][192][192][192][192][192][174]"
560 print"[221]:[221] [205][207][206] [221] [196][201][197] [221] [205][201][212] [221] [196][207][206] [221] [198][210][197] [221] [211][193][205] [221]"
565 print"[171][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][179]"
570 print"[221]1[221]";w$(1);"[221]";w$(9);"[221]";w$(17);"[221]";w$(25);"[221]";w$(33);"[221]";w$(41);"[221]"
575 print"[171][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][179]"
580 print"[221]2[221]";w$(2);"[221]";w$(10);"[221]";w$(18);"[221]";w$(26);"[221]";w$(34);"[221]";w$(42);"[221]"
585 print"[171][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][179]"
590 print"[221]3[221]";w$(3);"[221]";w$(11);"[221]";w$(19);"[221]";w$(27);"[221]";w$(35);"[221]";w$(43);"[221]"
595 print"[171][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][179]"
600 print"[221]4[221]";w$(4);"[221]";w$(12);"[221]";w$(20);"[221]";w$(28);"[221]";w$(36);"[221]";w$(44);"[221]"
605 print"[171][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][179]"
610 print"[221]5[221]";w$(5);"[221]";w$(13);"[221]";w$(21);"[221]";w$(29);"[221]";w$(37);"[221]";w$(45);"[221]"
615 print"[171][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][179]"
620 print"[221]6[221]";w$(6);"[221]";w$(14);"[221]";w$(22);"[221]";w$(30);"[221]";w$(38);"[221]";w$(46);"[221]"
625 print"[171][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][179]"
630 print"[221]7[221]";w$(7);"[221]";w$(15);"[221]";w$(23);"[221]";w$(31);"[221]";w$(39);"[221]";w$(47);"[221]"
635 print"[171][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][219][192][192][192][192][192][179]"
640 print"[221]8[221]";w$(8);"[221]";w$(16);"[221]";w$(24);"[221]";w$(32);"[221]";w$(40);"[221]";w$(48);"[221]"
645 print"[173][192][177][192][192][192][192][192][177][192][192][192][192][192][177][192][192][192][192][192][177][192][192][192][192][192][177][192][192][192][192][192][177][192][192][192][192][192][189]"
650 return
655 :
660 rem - bildschirmfuss -
665 :
670 for a=1 to 40:print"[164]";:next a
675 print" [194]itte waehlen [211]ie einen [205]enuepunkt aus [146]";
680 for a=1 to 40:print"[163]";:next a
685 poke bs,27:return
690 :
695 rem - stundenplan erstellt ? -
700 :
705 if ein=0 then meld$(1)="[211]tundenplan"
710 if ein=0 then meld$(2)="[197]s wurde kein [211]tundenplan eingegeben !
715 [139] ein[178]0 [167] [141] 160
720 [142]
725 :
730 [143] - bildschirmkopf -
735 :
740 [153]"load":[151] 53280,0:[151] 53281,0:[151] bs,11
745 [153]" openortantantantantantantantantantantantantantantantan^wait"
750 [153]" (NULL) (NULL)(NULL)(NULL)(NULL)str$val(NULL)(NULL)(NULL)atn(NULL) 64 (NULL)wait"
755 [153]"ortantantantantantantantantantan>tantantantantantantantantantantantantantantantan>tantantantantantantantantantan^";
760 [153]"(NULL)(w) 1989 chr$uido (NULL)emmel/(NULL)ikolaus left$eusler(NULL)";
765 [153]"/tantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantanexpwait";
770 [142]
775 :
780 [143] - hauptmenue -
785 :
790 [141] 740
795 [153]"cont andandandandandandandandandandandand"
800 [153]" left$auptmenue wait"
805 [153]" usrusrusrusrusrusrusrusrusrusrusrusr"
810 [153]"sys f1 wait (NULL)tundenplan eingeben
815 print"[158] f3 [146] [211]tundenplan sehen/loeschen
820 [153]"sys f5 wait (NULL)tundenplan drucken"
825 [153]"sys f7 wait str$isk-(NULL)enue"
830 [153]"sys f8 wait (NULL)rogramm verlassenlist
834 gosub 670:print" [145][145][145][145][145][150][197]in [154][205]arkt & [212]echnik [150][208]rogramm, 64'er
835 [153]" (NULL)onderheft cont46def atnlle (NULL)echte vorbehalten
840 e$="":get e$:if e$="" then 840
845 e=asc(e$)
850 if e=140 then print"[147]":sys 64738
855 if e<133 or e>136 then 840
860 if e=133 then gosub 1225
865 if e=134 then gosub 1395
870 if e=135 then gosub 1475
875 if e=136 then gosub 900
880 goto 790
885 :
890 rem - disk-menue -
895 :
900 gosub 740
905 print"[154] [175][175][175][175][175][175][175][175][175][175][175][175]"
910 print" [196]isk-[205]enue [146]"
915 print" [183][183][183][183][183][183][183][183][183][183][183][183]"
920 print" [158] f1 [146] [196]irectory sehen"
925 print" [158] f2 [146] [211]tundenplan laden"
930 print" [158] f3 [146] [211]tundenplan speichern"
935 print" [158] f4 [146] [198]loppy-[203]ommandos"
940 print" [158] f5 [146] [211]tundenplandatei loeschen"
945 print" [158] f6 [146] [200]auptmenue[155]"
950 gosub 670
955 e$="":get e$:if e$="" then 955
960 e=asc(e$)
965 if e<133 or e>139 or e=136 then 955
970 if e=133 then gosub 420
975 if e=137 then gosub 1020
980 if e=134 then gosub 1050
985 if e=138 then gosub 1085
990 if e=135 then gosub 1200
995 if e=139 then return
1000 goto 900
1005 :
1010 rem - stundenplan laden -
1015 :
1020 print"[211]tundenplan laden[146]"
1025 ein=1:gosub 385
1030 return
1035 :
1040 rem - stundenplan speichern -
1045 :
1050 print"[211]tundenplan speichern[146]"
1055 gosub 705:if ein=0 then return
1060 gosub 345
1065 return
1070 :
1075 rem - floppy-kommandos -
1080 :
1085 gosub 740
1090 print"[154] [175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175]"
1095 print" [198]loppy-[203]ommandos [146]"
1100 print" [183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183]"
1105 print" [158] f1 [146] [203]ommando"
1110 print" [158] f3 [146] [196]isk-[205]enue"
1115 print"[155]":gosub 670
1120 e$="":get e$:if e$="" then 1120
1125 e=asc(e$)
1130 if e<133 or e>134 then 1120
1135 if e=133 then gosub 1165
1140 if e=134 then return
1145 goto 1085
1150 :
1155 rem - kommando -
1160 :
1165 lw=37:print"[151]>[158][164]";:ei$="":gosub 495:print
1170 if b$="_" then return
1175 be$=ei$:open 15,8,15:gosub 470
1180 gosub 215:close 15:return
1185 :
1190 rem - stundenplandatei loeschen -
1195 :
1200 print"[211]tundenplandatei loeschen[146]"
1205 open 15,8,15:gosub 475
1210 gosub 215:close 15:return
1215 :
1220 rem - stundenplan erstellen -
1225 :
1230 gosub 740:poke bs,27
1235 print"[154] [175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175]"
1240 print" [211]tundenplan eingeben [146]"
1245 print" [183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][155]"
1250 for a=1 to 40:print"[163]";:next a
1255 print"[158]_[146] [200]auptmenue [158][195][210][211][210] down/up[146] [193]uswahl"
1260 print"[158]^[146] [198]acheingabe[155] [158]*[146] [203]orrektur
1265 [129] a[178]1 [164] 40:[153]"to";:[130] a
1270 nw[178].:dz[178]1:wz[178]1:ss[178]1
1275 sp[178]14[170]nw:[151] 211,0:[151] 214,14:[158] cs
1280 [129]wt[178]1[164]8:[153]""wt"cmd. (NULL)tunde am "wt$(ss)[163]25)"poke"w$(wt[170]ss[172]8[171]8):[130]wt
1285 [129] a[178]1 [164] 40:[153]"to";:[130] a
1290 [151] 211,25:[151] 214,sp:[158] cs:[153]""fa$(wz)
1295 [151]198,.:[146]198,1:[161] e$
1300 [139] e$[178]"" [167] wz[178]wz[170]1
1304 [139] e$[178]"*" [167] [141]1700:[145]c%[137]1290,1346
1305 [139] e$[178]"on" [167] wz[178]wz[171]1
1310 [139] e$[178][199](13) [167] w$(dz)[178]fa$(wz):sp[178]sp[170]1:nw[178]nw[170]1:dz[178]dz[170]1:[141]1730
1315 [139] e$[178]"^" [167]1350
1320 [139] e$[178]"_" [167] dz[178]99
1325 [139] wz[179]1 [167] wz[178]18
1330 [139] wz[177]18 [167] wz[178]1
1335 [139] dz[178]49 [167] ein[178]1
1336 [139] dz[177]48 [167][129] co[178]1 [164] 48:w$(co)[178]"poke"[170]w$(co)[170]"sys":[130] co:[142]
1340 [139]nw[178]8[167]ss[178]ss[170]1:nw[178].:[137]1346
1345 [137] 1290
1346 [129]zl[178]14[164]22:[151]781,zl:[158]zs:[130]zl:[137]1275
1350 [151] 211,25:[151] 214,sp:[158] cs:[153]" cmdcmdcmdcmdcmdto";:ei$[178]"":lw[178]4
1355 [141] 495
1360 [139] b$[178]"_" [167] [142]
1365 [139] b$[178][199](13) [167] [153] [199](20):sp[178]sp[170]1:nw[178]nw[170]1:[141]1730
1370 [139] b$[178][199](13) [175] [195](ei$)[179]5 [167] ei$[178]ei$[170]" ":[137] 1370
1375 w$(dz)[178]ei$:dz[178]dz[170]1:[137] 1335
1380 :
1385 [143] - stundenplan sehen -
1390 :
1395 [141] 705:[139] ein[178]0 [167] [142]
1400 [153]"loadsys":[151] bs,11:[141] 555:[151] bs,27
1405 [153]"sys f1 wait left$auptmenue sys f3 wait atnlles loeschen"
1410 e$[178]"":[161] e$:[139] e$[178]"" [167] 1410
1411 [139] e$[178]"h" [175] hard[178]0 [167] [151] 781,21:[158] zs:hard[178]1:[137] 1410
1412 [139] e$[178]"h" [175] hard[178]1 [167] [153]"ononon":hard[178]0:[137] 1405
1415 e[178][198](e$)
1420 [139] e[179]133 [176] e[177]134 [167] 1410
1425 [139] e[178]133 [167] [142]
1430 [139] e[178]134 [167] [151] 781,22:[158] zs:[137] 1440
1435 [129] al[178]1 [164] 48:[153]"load(NULL)oesche:";w$(al):w$(al)[178]"":[130] al:ein[178]0:[142]
1440 [151] 211,0:[151] 214,23:[158] cs:[153]"list(NULL)irklich alles loeschen ? [j/n]wait"
1445 e$[178]"":[161] e$:[139] e$[178]"j" [167] 1435
1450 [139] e$[178]"n" [167] [151] 781,23:[158] zs:[137] 1410
1455 [137] 1445
1460 [143]
1465 [143] - stundenplan ausdrucken -
1470 [143]
1475 [141] 705:[139] ein[178]0 [167] [142]
1480 [141] 305
1485 [141] 740
1490 [153]"cont andandandandandandandandandandandandandandandandandandandandand"
1495 [153]" (NULL)tundenplan drucken wait"
1500 [153]" usrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusrusr"
1505 [153]"ortantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantan^";
1510 [153]"(NULL)atnlenleft$(NULL)(NULL)(NULL)chr$ ! str$er (NULL)tundenplan kann nur aufwait(NULL)";
1515 [153]"(NULL)(NULL)(NULL)(NULL) 801 und kompatiblen str$ruckern aus- wait(NULL)";
1520 [153]"(NULL)gedruckt werden. peekitte achten (NULL)ie auf wait(NULL)";
1525 [153]"(NULL)right$hren str$ruckertyp !!! wait(NULL)";
1530 [153]"/tantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantanexp";:[151] bs,27
1535 [153]"listright$st das (NULL)apier schon justiert ? [j/nwait]"
1540 e$[178]"":[161] e$:[139] e$[178]"j" [167] 1555
1545 [139] e$[178]"_" [167] [142]
1550 [139] e$[179][177]"j" [167] 1540
1555 [153]"open right$ch drucke ..."
1560 [153]" usrusrusrusrusrusrusrusrusrusrusrusrusrusr"
1565 :
1570 [143] - drucken -
1575 :
1580 [159] 1,4,7:[152]1,ps$;[199](0);[199](40);
1585 [152]1,bt$(1),"(NULL)(NULL)(NULL)(NULL)str$val(NULL)(NULL)(NULL)atn(NULL)",bt$(0);
1590 [129] i[178]1 [164] 3:[152]1,[199](13):[130] i:[152]1,bt$(1)
1595 [152]1,ps$;[199](0);[199](0)
1600 [152]1,[199](27);"3";[199](23):[143] inches
1605 [157] 1
1610 [141] 555:[152]1,[199](27);"3";[199](25):[160] 1:[142]
1615 :
1620 [143] - datas wochentage & faecher -
1625 :
1630 [131] "(NULL)ontag","str$ienstag","(NULL)ittwoch","str$onnerstag","ascreitag","(NULL)amstag"
1635 [131] "(NULL)athe","(NULL)usik","(NULL)urs ","(NULL)port","(NULL)unst","valrdkd","valngl ","str$tsch"
1640 [131] "(NULL)hysk","lenhem ","peekio ","chr$esch","ascranz","(NULL)at ","(NULL)elig","right$nfor"
1645 [131] "(NULL)irts","-----"
1690 :
1700 [143] **** korrektur ****
1702 [143] routine von nikolaus heusler
1704 [143] we apologize for any inconvenience
1710 c%[178]1:[139]dz[178]1[167][142]
1712 [141]1730:dz[178]dz[171]1:sp[178]sp[171]1:nw[178]nw[171]1:[139]nw[178][177].[167][142]
1714 nw[178]7:sp[178]14:ss[178]ss[171]1:c%[178]2
1720 [142]
1730 [129]n1[178].[164]4:[151]55281[170]n1[170]sp[172]40,11:[151]55321[170]n1[170]sp[172]40,11:[130]:[142]
1740 [129]n1[178].[164]4:[129]n2[178].[164]7:[151]55881[170]n1[170]n2[172]40,11:[130]n2,n1:[142]